package com.crazybird.vote.restful.base;

import java.sql.Timestamp;

/**
 * @Type ObjectModel
 * @Desc 错误对象Model
 * @date 2016-7-3
 * @Version V1.0
 */
public class ErrorModel {
    private Timestamp timestamp;
    private Integer status;
    private String error;
    private String path;
    private String message;
    private StackTraceElement[] stackTrace;

    public ErrorModel() {
        super();
        this.setCode("400");
    }
    public void setCode(String code){
        status=Integer.parseInt(code);
    }
    public Timestamp getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Timestamp timestamp) {
        this.timestamp = timestamp;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setStackTrace(StackTraceElement[] stackTrace) {
        this.stackTrace = stackTrace;
    }

    public StackTraceElement[] getStackTrace() {
        return stackTrace;
    }
}
